<extend name="Public/Analysis/Common"/>

<block name="bjui-pageHeader">
    <div class="bjui-pageHeader">
        <form id="pagerForm" data-toggle="ajaxsearch" action="{:U($Think.ACTION_NAME)}" method="post">
            <div class="bjui-searchBar">
                <div class="pull-left">
                    <label>统计时间：</label>
                    <input type="text" data-toggle='datepicker' value="{$start_time}" name="start_time" class="form-control" data-pattern="yyyy-MM"
                           size="20" data-rule="required"/>
                    -
                    <input type="text" data-toggle='datepicker' value="{$end_time}" name="end_time" class="form-control" data-pattern="yyyy-MM"
                           size="20" data-rule="required"/>
                    <br/>
                    <?php foreach($countTypeList as $name=>$countType):?>
                    <input type="radio" name="countType" data-toggle="icheck" data-label="{$countType.title}" id="{$name}" value="{$name}" <?php echo (I('countType') && I('countType')==$name) || (!I('countType') && $defaultCountType==$name) ? 'checked' : '';?>>
                    <?php endforeach;?>
                </div>

                <div class="pull-left">
                    <label>环比时间：</label>
                    <input type="text" data-toggle='datepicker' value="{$h_start_time}" name="h_start_time" class="form-control" data-pattern="yyyy-MM"
                           size="20" data-rule="required"/>
                    -
                    <input type="text" data-toggle='datepicker' value="{$h_end_time}" name="h_end_time" class="form-control" data-pattern="yyyy-MM"
                           size="20" data-rule="required"/>
                </div>


                <div class="btn btn-default search" data-icon="search"><i class="fa fa-search"></i> 查询</div>
            </div>
        </form>
    </div>
</block>

<block name="bjui-pageContent">
    <div class="bjui-pageContent">
        <div style="margin:15px auto 0; width:95%;">
            <div class="row" style="padding: 0 8px;">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-bar-chart-o fa-fw"></i>3D柱状图</h3>
                        </div>
                        <div class="panel-body">
                            <div style="min-width:400px;height:350px" data-toggle="highcharts" data-data='{$chartData}'>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>

<block name="bjui-pageFooter"></block>